-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated checks for validate_name() in MemberForm() #1106
base: master
Are you sure you want to change the base?
Conversation
Thanks for this, it seems good to me, but lacks a test to ensure that what you're doing works the way you intend. Are you okay to write such a test? Thanks! |
|
Probably a manipulation error? |
Yes that was a manipulation error, sorry! I have just added two tests for this particular change at #1111. |
The database allows users to deactivate an account with a non-zero value, and create a new user with the same name, reactivating the previous user will allow two users of the same name. This change assures that new user names can not be the same as deactivated users with associated bills (Users that are not deleted from deactivation).
Added 2 tests checking for validate_name() in MemberForm()
Thanks for the patch, I added your new tests from #1111 so that we have everything in one place. Two tests are failing:
@mzhongqi can you fix both tests? |
The database allows users to deactivate an account with a non-zero value, and create a new user with the same name, reactivating the previous user will allow two users of the same name. This change assures that new user names can not be the same as deactivated users with associated bills (Users that are not deleted from deactivation).